Using image layers
Image layer is used for displaying a single or a render target texture.
Creating image layers
To create an image layer:
- In the Project right-click the object where you want to create an Image Layer and select Create > Image Layer.
- In the Properties set the Texture property to the texture you want to display on the image layer.
The layer inherits the width and height from the texture. To set a different size, add and set:- Layout Width and Layout Height properties
- Layer Content Stretch property
- Set the alignment of the layer by setting the Horizontal Alignment and Vertical Alignment properties.
You can use a layer material to create dynamic shading effects for the displayed texture. For example, you can use materials to transform the image to gray scale to indicate that the application is inactive.
Using textures with transparency in image layers
By default image layers are rectangular. For different shapes use a transparent texture and transparent background for the layer.
To use a texture with transparency in an image layer:
- In the Project select an existing or create a new image layer.
- In the Properties set the Texture property to a texture with transparency you want to display on the image layer.
- In the Properties click Add Properties, add Layer Background Brush Color and set its alpha and color values.
Enabling a layer to receive touch input
To enable a layer to receive touch input:
- Select an existing or create an new layer and click Add Properties.
- In the Add Properties window add Hit Testable property.
- In the Properties enable the Hit Testable property.
Enabling a layer to receive click actions
To enable a layer to receive click actions:
- Select an existing or create an new layer and click Add Properties.
- In the Add Properties window add Enable Click property.
- In the Properties enable the Enable Click property.
See also
Using triggers
Open topic with navigation